package com.ruoyi.web.controller.human;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.human.domain.HuRider;
import com.ruoyi.human.service.HuRiderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController

public class RiderController extends BaseController {
    @Autowired
    private HuRiderService riderService;

    @RequestMapping("/human/rider/list")
    public AjaxResult riderList() {
        List<HuRider> riders = riderService.listRiders();
        return AjaxResult.success(riders);

    }
}
